<%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2021-09-14
  Time: 19:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>


    <title>健康评测</title>

    <link href="sources/css/note.css" rel="stylesheet">
    <link href="sources/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="sources/sweetalert/sweetalert2.min.css" rel="stylesheet">
    <script src="sources/js/jquery-1.11.3.js"></script>
    <script src="sources/bootstrap/js/bootstrap.js"></script>
    <script src="sources/sweetalert/sweetalert2.min.js"></script>
    <script src="sources/js/util.js"></script>
    <!-- 配置文件 -->
    <script type="text/javascript"  src="sources/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript"   src="sources/ueditor/ueditor.all.js"></script>
    <script type="text/javascript"  src="sources/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript"  src="sources/ueditor/ueditor.parse.js"></script>



    <style type="text/css">
        body {
            padding-top: 60px;
            padding-bottom: 40px;
            background: url(sources/images/bg.gif) repeat;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" style="font-size:25px" href="question?actionName=view">Health</a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li <c:if test="${menupage=='index'}">class="active"</c:if> ><a href="index"><i class="glyphicon glyphicon-cloud"></i>&nbsp;论&nbsp;&nbsp;坛</a></li>
                <li <c:if test="${menupage=='modify'}">class="active"</c:if> ><a href="modify?actionName=modify"><i class="glyphicon glyphicon-pencil"></i>&nbsp;发表文章</a></li>
                <li <c:if test="${menupage=='type'}">class="active"</c:if> ><a href="type?actionName=query"><i class="glyphicon glyphicon-list"></i>&nbsp;文章类别</a></li>
                <li <c:if test="${menupage=='userCenter'}">class="active"</c:if> ><a href="user?actionName=userCenter"><i class="glyphicon glyphicon-user"></i>&nbsp;个人中心</a>
                <li <c:if test="${menupage=='question'}">class="active"</c:if> ><a href="question?actionName=view"><i class="glyphicon glyphicon-book"></i>&nbsp;问卷调查</a></li>
                <li <c:if test="${menupage=='hospital'}">class="active"</c:if> ><a href="user?actionName=hospital"><i class="glyphicon glyphicon-user"></i>&nbsp;医疗健康</a>
            </ul>

            <form class="navbar-form navbar-right" role="search" action="index">
                <div class="form-group">
                    <input type="hidden" name="actionName" value="searchTitle">
                    <input type="text" name="title" class="form-control" placeholder="搜索论坛文章" value="${title}">
                </div>
                <button type="submit" class="btn btn-default">查询</button>
            </form>

        </div>
    </div>
</nav>
<div class="container">
    <div class="row-fluid">
        <div class="col-md-3">
            <div class="data_list">
                <div class="data_list_title"><span class="glyphicon glyphicon-user"></span>&nbsp;个人中心&nbsp;&nbsp;&nbsp;&nbsp;<a href="user?actionName=logout">退出</a></div>
                <div class="userimg">
                    <img src="user?actionName=userHead&imageName=${user.head}">
                </div>
                <div class="nick">${user.nick}</div>
                <div class="mood">${user.motto}</div>
            </div>
<%--            <div class="data_list">--%>
<%--                <div class="data_list_title">--%>
<%--					<span class="glyphicon glyphicon-calendar">--%>
<%--					</span>&nbsp;云记日期--%>
<%--                </div>--%>

<%--                <div>--%>
<%--                    <ul class="nav nav-pills nav-stacked">--%>
<%--                        <c:forEach items="${dateInfo}" var="item">--%>
<%--                        <li><a href="index?actionName=searchDate&date=${item.groupName} ">${item.groupName} <span class="badge">${item.noteCount}</span></a></li>--%>
<%--                        </c:forEach>--%>

<%--                    </ul>--%>
<%--                </div>--%>

<%--            </div>--%>
<%--            <div class="data_list">--%>
<%--                <div class="data_list_title">--%>
<%--					<span class="glyphicon glyphicon-list-alt">--%>
<%--					</span>&nbsp;云记类别--%>
<%--                </div>--%>

<%--                <div>--%>
<%--                    <ul  id="typeUl" class="nav nav-pills nav-stacked">--%>
<%--                       <c:forEach items="${typeInfo}" var="item">--%>
<%--                        <li id="li_${item.typeId}"><a href="index?actionName=searchType&type=${item.typeId}"><span id="sp_${item.typeId}">${item.groupName} </span><span class="badge">${item.noteCount}</span></a></li>--%>
<%--                        </c:forEach>--%>

<%--                    </ul>--%>
<%--                </div>--%>

<%--            </div>--%>
        </div>
    </div>

    <%--动态包含页面 --%>
    <c:if test="${empty changePage}">
        <jsp:include page="question/question.jsp"></jsp:include>
    </c:if>
    <c:if test="${!empty changePage}">
        <jsp:include page="${changePage}"></jsp:include>
    </c:if>






</div>

</body></html>
